<template>
	<view class="wrap bgw">
		<p style="text-align: center; padding-top: 60rpx;"></p>
		<!-- {{text}} -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text: {
					a: '1',
					b: '2'
				}
			}
		},
		onLoad(e) {
			uni.clearStorageSync()

			// 向宿主App发送事件
			uni.sendNativeEvent('infoUser', {
				msg: 'unimp message!!!'
			}, ret => {
				ret = JSON.parse(ret)
				let token = ret.token;
				uni.setStorageSync('token', token)
			})

			if (e.type) {
				let go = {
					type: e.type,
					id: e.id
				}
				uni.setStorageSync('MarketGo', go)
			}
			this.text = e
			this.text = JSON.stringify(this.text)
			
			uni.switchTab({
				url: '../index/index'
			})
		}
	}
</script>

<style scoped>
	.startImg {
		position: fixed;
		left: 50%;
		top: 50%;
		width: 100%;
		height: 1000rpx;
		transform: translate(-50%, -50%);
	}
</style>
